var e = require("../../utils/tool").toastToPage;

Component({
    properties: {
        orderDetail: {
            type: Object
        },
        computedPriceDetails: {
            type: Object
        },
        showDiscount: {
            type: Boolean,
            value: !0
        }
    },
    data: {
        intergalSelect: !1
    },
    methods: {
        changeIntergal: function(t) {
            0 != this.properties.computedPriceDetails.integralNum ? this.triggerEvent("chooseIntergal", {
                intergal: t.detail.select
            }) : e("暂无可用积分");
        },
        clickCoupon: function() {
            0 != this.properties.computedPriceDetails.usefulCouponNum ? this.triggerEvent("clickCoupon", {}) : e("暂无可用优惠券");
        }
    }
});